package com.woniuxy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.*;

import com.woniuxy.entity.Perms;

@Mapper
public interface PermsMapper {
	
	//查询所有权限
	@Select("select * from perms")
	public List<Perms> findPerms();
	
	 @Insert("insert into perms values(default,#{type})")
	public int addPerms(String type);
	 
	 @Delete("delete from perms where pe_id=#{pe_id}")
	 public int delPerms(int pe_id);
	 
	 @Update("update perms set type=#{type} where pe_id=#{pe_id}")
	 public int updatePerms(int pe_id,String type); 
	 
	
}
